let reg=/[a-zA-Z]/
let username1='myName'
let username2='?.'
console.log(reg.test(username1));
console.log(reg.test(username2));
var str = 'beautiful 女孩!';
console.log(str.match(/[abc]/g));
console.log(str.match(/[^a-z]/g));